package com.xdcplus.web.common.enums.mm;

/**
 * 出入库记录类型
 * @Description
 * @Author xyy
 * @Date 2023/5/27 14:46
 */

public enum MmStockLineRecordTypeEnum {


    INSTORAGE("1", "入库"),
    OUTSTORAGE("2", "出库"),

    ;

    MmStockLineRecordTypeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static String getMsgByCode(String code) {
        for (MmStockLineRecordTypeEnum mmStockLineRecordTypeEnum : values()) {
            if (mmStockLineRecordTypeEnum.getCode().equals(code)) {
                return mmStockLineRecordTypeEnum.getMsg();
            }
        }
        return null;
    }

    private String code;

    private String msg;

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
